Android engineers will answer 20 questions and Android 20 questions
I. multiple choice questions (7 questions in total, 5 points per question)1. Which of the following statements about using AIDL to call a remote service method is false?A. The interface name corresponding to aidl cannot be the same as that of aidlB. The content of the aidl file is similar to the
end frames. The intermediate process is completed by the system. Therefore, it is not used in Game Development with a large number of frames.Tween provides a total of 4 animation EffectsScale: Scaling AnimationRotate: rotating AnimationTranslate: Mobile AnimationAlpha: transparent gradient Animation
Frame Animation
Also known as frame animation, the main display mode is the animation's total tag, where Frame Animation is placed
Tags, that is, several
The frame combination of tags is
Because android2.3 and above have added restrictions on permission Android. Permission. modify_phone_state, the method of calling itelephone through the reflection mechanism before 2.3 is no longer applicable, so you can use the counterfeit broadcast method to answer the phone.
Package COM. demo. launcher; import Java. lang. reflect. invocationtargetexception; import Java. lang. reflect. method; import
Reference: Android call answering and hang up support for all current versionsNote: The following automatic answer methods are not supported for android2.3 versions and above.(Will throw exception: Java.lang.SecurityException:Neither user xxxxx Nor current process has android.permission.MODIFY_PHONE_STATE.)Cause: android2.3 version and above Android.permission.MODIFY_PHONE_STATE permission limit has been ch
completes, if wants to return the concrete data, how to do? if Activity is destroyed and will be executed to Postexcutd method? The first line of code P364Links: http://www.cnblogs.com/sandyclaire1990/p/4766680.html49, View in onTouch,ontouchevent, The execution order of the OnClickPending answer50, do not use animation, how to achieve a dynamic View? Pending answer51. Update view differences between invalidate and Postinvalidate in Android?Links: ht
How does Android clear the canvas?
It seems that no good solution has been found. Some methods restrict the use of solid background, but no matter how you try it, there is no effect,
Finally found the answer on the http://stackoverflow.com/questions/4650755/clearing-canvas-with-canvas-drawcolor:
The result is as follows:
The effects of earlier unsatisfactory Images
(Note: The graph is directed to t
....This year just learned the operating system, at that time in the Linux environment to create a new process, the new process calls the code inside the variable x, X is actually the parent process inside the x copy, modify the child process inside the x does not change the value of x in the parent process, is this the problem? is draw with my app not a process?Next up my, it seems really two processes in the execution of draw ...Everyone can see, I drag the mouse, the current red lyrics is no
Android ----------------- answer questions
1. What are the parsing methods of XML? What is the execution process of each parsing method?
Set XML to:Bc
C1
Dom SAX Pull
2.Bc
C1
What should they look like in a tree
The root node is above
The subnode and text are listed below
3. There are three existing activities: A1, A2, and A3. How can we achieve A1 to start A2? After A2 starts
What do 1.view animations need to be aware of?Answer: The view animation itself is relatively simple. Http://www.cnblogs.com/punkisnotdead/p/5179115.html look at the fifth question of this article can be.2. How do I add animation to the appearance of viewgroup elements?Answer: Take the ListView as an example.1 XML version= "1.0" encoding= "Utf-8"?>2 layoutanimationxmlns:android= "Http://schemas.android.com/
Reason: Android can be used to aidl silent answer, but after 5.0 was Google to shield, this time we can only be achieved by other means. Solution:try { runtime.getruntime (). EXEC ("input keyevent" + integer.tostring (Keyevent.keycode_headsethook)); } catch (IOException e) { //runtime.exec (String) had an I/O problem, try to fall back String enforce
The implementation of Android intelligent question and answer robot
Service Category:Service Class API
Using the service:Turing robot
Function Classification:Entertainment
Supported Platforms:Android
Operating Environment:Android
Development language:Java
Development tools:Eclipse
SOURCE Size:1.94MB
: http://www.devstore.cn/code/info/117.htmlIntroduction to Source codeAndroid bot implemen
This article through 13 ask 13 to learn the Android view drawing for your reference, the specific contents are as follows
1.View drawing process In a few steps, where to start? Which process can see the view after the end?
A: Starting with the performtraversals of Viewroot, after measure,layout,draw three processes. After the draw process is over, you can see the view on the screen.
is there any difference between the measuring width of 2.view and
Tag: Cal problem run DBR SSI exe EXE event putCause: Android was able to listen silently via aidl. But after 5.0 has been blocked by Google. This is the only way we can achieve this. How to resolve:try { runtime.getruntime (). EXEC ("input keyevent" + integer.tostring (Keyevent.keycode_headsethook)); } catch (IOException e) { //runtime.exec (String) had an I/O problem, try to fall back String
consumption is large, not applicable to mobile devices such as Android.The Sax parsing XML file is event-driven, that is, his read is one-way, does not need to parse the entire document, in the process of parsing the document in the order of content, sax will determine whether the currently read characters conform to a part of the XML syntax, if the match will trigger the event, is actually some callback method, Then the judgment is processed.Advantages: Fast resolution, low memory consumption,
a strong reference (which we often refer to), is characterized by the fact that the GC ignores weak references when it recycles, that is, even if a weak reference points to an object, as long as the object is not pointed to by a strong reference (and most often requires no soft reference). The object is reclaimed when it is checked by the GC. If you are concerned about the memory overhead of the app, you can consider using WeakReference, when GC reclamation swept through this area of memory wil
TextView content;}}The only thing to note is that since our ListView item has two display styles, we need to rewrite two more methods than usual:/** * received message for 1. Send Message 0 */@Overridepublic int getitemviewtype (int position) {Chatmessage msg = mdatas.get (position); return Msg.gettype () = = Type.input? 1:0;} @Overridepublic int Getviewtypecount () {return 2;}The Getviewtypecount returns the number of species, and getitemviewtype the position of the item of course returns diff
Personally feel that the answer interface is very good-looking.The first card in the middle is cardview.Also, to hide the navigation bar.And then, how to achieve cardview how can half in the blue part?The first is divided into two parts, the first part TextView, is used to display the problem, and then specify the CardView property below it.Again with a textview of the same color, the height is half of the CardView, also under the first TextView, and
Topic: The relationship between TCP and UDP, and the relationship between TCP and HTTP.The transport layer primarily provides end-to-end communication for applications on two hosts. In the TCP/IP protocol family, there are two different transport protocols: TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).TCP provides high-reliability data communication for two hosts. The work that it does involves putting the data that the application gives to it into the appropriate small p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.